package com.github.llyb120.performance.generator;

/**
 * @Author: Administrator
 * @Date: 9/10/2021 3:34 PM
 */
public class ConstGenerator<T> implements Generator<T>{

    private T value;

    public ConstGenerator(T value) {
        this.value = value;
    }

    public T generate() throws Exception {
        return value;
    }
}
